﻿/****************************************
 *  copyright (c) 2008 leo shen
 *  
 *  all rights reserved         
 * 
 *  e-mail : syl.lucky@gmail.com
 * *************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace DotUpdater.Core
{
    public class UpdateItem
    {       
        UpdateOperation m_operation;
        App_FileORFolder m_fileORFolder;
        //bool m_isFolder;
        //bool m_isFile;
        //App_Folder m_folder;
        //App_File  m_file;

        public UpdateItem(UpdateOperation operation, App_FileORFolder fileOrFolder)
        {
            m_operation = operation;
            m_fileORFolder = fileOrFolder;
        }

        public UpdateOperation Operation
        {
            get { return m_operation; }
            set { m_operation = value; }
        }

        public App_FileORFolder FileOrFolder
        {
            get
            {
                return m_fileORFolder; }
            set
            {
                m_fileORFolder = value; }
        }

        
        ///// <summary>
        ///// 是否为文件
        ///// </summary>
        //public bool IsFile
        //{
        //    get { return m_isFile; }
        //    set { m_isFile = value; m_isFolder = !value; }
        //}

        ///// <summary>
        ///// 是否为文件夹
        ///// </summary>
        //public bool IsFolder
        //{
        //    get { return m_isFolder; }
        //    set { m_isFolder = value; m_isFile = !value; }
        //}

        //public App_Folder Folder
        //{
        //    get { return m_folder; }
        //    set { m_folder = value; }
        //}

        //public App_File File
        //{
        //    get { return m_file; }
        //    set { m_file = value; }
    }
}
